package www;
import java.util.*;
public class C2 {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		while (!reader.hasNext("#")) {
			if (reader.hasNextInt()) {
				String num1 = reader.next();
				if(reader.hasNextInt()) {
				String num2 = reader.next();
				int number1 = Integer.parseInt(num1);
				int number2 = Integer.parseInt(num2);
				int t = number1 + number2;
				System.out.println(t);}
				else {
					String num2 = reader.next();
					int number1 = Integer.parseInt(num1);
					String t = number1 + num2;
					System.out.println("字符串："+t);
				}
			} else if (reader.hasNextDouble()) {
				String num1 = reader.next();
				String num2 = reader.next();
				double number1 = Double.parseDouble(num1);
				double number2 = Double.parseDouble(num2);
				double t = number1 + number2;
				System.out.println(t);
			} else if (reader.hasNext()) {
				if (reader.hasNextInt()) {
					String num1 = reader.next();
					String num2 = reader.next();
					int number1 = Integer.parseInt(num1);
					String t = number1 + num2;
					System.out.println(t);
				} else if (reader.hasNext()) {
					String num1 = reader.next();
					String num2 = reader.next();
					String t = num1 + num2;
					System.out.println("字符串:" + t);
				}

			}
		}
	}
}
//2
package www;
class car{
	void drive() {};
}
class motorcycle extends car{
	void drive() {
		System.out.print("motorcycle\n");
	}
}
class hand_tractor extends car{
	void drive() {
		System.out.print("hand_tractor\n");
	}
}
class compactcar extends car{
	void drive() {
		System.out.print("compactcar\n");
	}
}
public class Test {
	public static void main(String[] args) {  
		car motorcycle=new motorcycle();
		car hand_tractor=new hand_tractor();
		car compactcar=new compactcar();
		motorcycle.drive();
		hand_tractor.drive();
		compactcar.drive();
	}

}
